// 国际物流费/运费规则类型定义（升级版）
export type FreightCalcMode = 'none' | 'first_additional' | 'additional' | 'table';

export interface FreightRuleV2 {
    id: string;
    logisticsName?: string; // 物流名称
    logoUrl?: string; // 物流Logo URL
    logisticsType: '直通' | '直邮' | '日本国内' | '中国国内';
    speed?: string; // 物流速度 (格式: "3~14日")
    features?: string; // 物流特点描述
    calcMode: FreightCalcMode;
    weightLimit: number; // G
    taxCode: string;
    remark?: string;

    // 首重+续重
    firstWeight?: number; // G
    firstPrice?: number;
    firstPriceAlt?: number;
    additionalWeight?: number; // G
    additionalPrice?: number;
    additionalPriceAlt?: number;

    // 续重
    onlyAdditionalWeight?: number; // G
    onlyAdditionalPrice?: number;
    onlyAdditionalPriceAlt?: number;

    // 详表
    tableDetail?: Array<{ weight: number; price: number }>;
} 